package com.xiaobao.campusLostFoundAfter.mapper;

import com.xiaobao.campusLostFoundAfter.pojo.BrowsingHistory;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface BrowsingHistoryMapper {
    //添加浏览记录
    int addBrowsingHistory(BrowsingHistory browsingHistory);
    //删除浏览记录
    int deleteBrowsingHistory(Integer bhId);
    //获取寻物的浏览记录
    List<BrowsingHistory> getBrowsingHistoryOfFound(String userId, String type);
    //获取招领的浏览记录
    List<BrowsingHistory> getBrowsingHistoryOfLost(String userId, String type);
    //修改浏览记录
    int updateBrowsingHistory(Integer bhId, Date updateTime);
    //获取浏览记录
    BrowsingHistory getFoundBrowsingHistory(Integer itemId, String itemType, String userId);
    //获取浏览记录
    BrowsingHistory getLostBrowsingHistory(Integer itemId, String itemType, String userId);
}
